﻿using BootstrapBlazor.Components;
using BPM.Web.Shared.Data;
using BPM.Web.Shared.Dependencies;
namespace BPM.Web.Shared.Service;

[Scoped(typeof(ISysOpLogService))]
public class SysOpLogService : BaseService, ISysOpLogService
{
    private readonly IOpLogClient _opLogClient;
    public SysOpLogService(IOpLogClient opLogClient, ToastService toast) : base(toast)
        => _opLogClient = opLogClient;

    public Task<QueryData<OpLogOutput>> PageAsync(OpLogPageInput input)
        => QueryAsync(_opLogClient.PageAsync(input));

    public Task<bool> DeleteAsync()
        => ExecuteAsync(_opLogClient.DeleteAsync());
}

